@import './variables.scss';
@import './element-ui.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html,
body,
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#nprogress {
  .peg {
    box-shadow: 0 0 10px #ffd200, 0 0 5px #ffd200 !important;
  }

  .bar {
    background: #ffd200 !important;
  }
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

.app-main {
  padding: 24px;
  border: 16px solid #f1f1f1;
}

.el-form-item.is-success .el-input__inner,
.el-form-item.is-success .el-input__inner:focus,
.el-form-item.is-success .el-textarea__inner,
.el-form-item.is-success .el-textarea__inner:focus {
  border-color: #DCDFE6;
}

.crud-table {
  .main-tabs {
    &>.el-tabs__content {
      padding: 36px 20px 20px 20px;
      border: 1px solid #e4e7ed;
      margin-top: -16px;
      border-radius: 0 0 4px 4px;
    }
  }

  .el-form {

    .el-cascader,
    .el-select-data,
    .el-select,
    .el-date-editor {
      width: 100%;
    }
  }

  .form-wrapper {
    padding: 10px 0;

    .el-cascader,
    .el-select-data,
    .el-select,
    .el-date-editor {
      width: 100%;
    }

    .sub-input {
      margin-top: 18px;
    }

    .el-form-item {
      width: 600px;
    }

    .el-form-item__label {
      padding-right: 32px;
    }

    .el-form-item {
      p {
        padding: 4px 0;
        font-size: 12px;
        color: #888;
        line-height: 1.2;
      }
    }
  }

  .tips {
    padding: 4px;
    background-color: #d8d8d8;
  }

  .form-tab {
    .el-tabs__content {
      padding: 30px 15px;
    }
  }

  .submit-wrapper {
    margin-top: 15px;
    text-align: left;

    .el-button {
      margin: 0 10px;
    }
  }

  .search-wrapper {
    margin: 24px auto;

    .el-select-data,
    .el-input {
      width: 220px;
      margin-right: 12px;
      margin-bottom: 12px;
    }

    .pull-left {
      margin-bottom: 12px;
      margin-right: 24px;
    }

    .search-name {
      font-size: 12px;
      margin-left: 12px;
    }
  }
}